import api from '../request';
const { post, get } = api;
/*
 *@Description:创建活动
 **/

//获取列表
export const activiesList = (params) => {
  return post('/activity/pageConditionQueryByCreatorId', params);
};
//获取一级城市列表  address/queryAddressForFourLinkage
export const getFirestcities = (params) => {
  return post('/address/queryAddressForFourLinkage', params);
};
//提交表单
export const postBasicInfo = (params) => {
  return post('/activity/addActivity', params);
};
// 编辑 的赋值数据
export const postDetail = (params) => {
  return post('activity/queryByUpdate', params);
};
/* // 活动详情 
export const postDetail1 = (params) => {
  return post('/activity/queryByActivityBasicId', params);
}; */
//统计
export const getStatistics = (params) => {
  return post('/activity/activityStatistical', params);
};
//活动删除  /activity/batchDeleteActivity
export const deleteActivies = (params) => {
  return post('/activity/batchDeleteActivity', params);
};

//编辑  修改
/* export const iditor = (params) => {
  return post('/activity/addActivity', params);
}; */
export const iditor = (params) => {
  return post('/activity/saveDrafts', params);
};
